home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel
/
CAROUSEL.cdr
/
mactosh
/
code
/
p_serlib.sit
/
Serial Library Source Code
/
makefile
< prev
next >
Wrap
Makefile
|
1989-07-27
|
4KB
|
142 lines
# Makefile for compiling Serial Driver routines
# by Atul Butte
# Copyright ⌐ 1989 by Microsoft Corporation
# All Rights Reserved
#
# version 1.0
#
# MPW 3.0 C Compiler required
# Serial Driver routines
SerialRoutines = ╢
serial.charArrived.dll ╢
serial.clearBreak.dll ╢
serial.close.dll ╢
serial.configure.dll ╢
serial.open.dll ╢
serial.read.dll ╢
serial.readFile.dll ╢
serial.readFileTilStr.dll ╢
serial.readTilStr.dll ╢
serial.resetBuffer.dll ╢
serial.setBreak.dll ╢
serial.setBuffer.dll ╢
serial.waitTilStr.dll ╢
serial.write.dll ╢
serial.writeFile.dll
# Transforming object file into a .dll file
# Note: although CODE/REGISTER routines must be CODE resources, we
# cannot link and create a CODE resource, because the linker thinks we
# want to compile an application, which we don't want to do.
# Thus, we link and create a XDLL resource, and this resource is converted
# into a CODE resource in the final step (see serial.r).
#
# dll, by the way, stands for downloadable library. We suffix the file names
# with dll so we can use the following dependency for all the files with routines.
.dll ─ .dll.c.o
Link -o {Default}.dll ╢
-rt XDLL=0 ╢
-m MAIN ╢
-sn MAIN={Default} ╢
-sg {Default} ╢
-t XLLB ╢
-c XCEL ╢
{Default}.dll.c.o ╢
"{Libraries}Interface.o" ╢
error.c.o
# Transforming the source code into an object file
# Note: We have to do this in two compiles, because of a bug in the
# C compiler, which doesn't handle string concatenation correctly.
.dll.c.o ─ .dll.c
C {Default}.dll.c ╢
-e2 | ╢
C -o {Default}.dll.c.o ╢
-t ╢
-b2 ╢
-r
# The final step
"serial library" ── {SerialRoutines} serial.r
Rez serial.r ╢
-a ╢
-c "XCEL"╢
-t "XLM " ╢
-o {Targ}
# The individual Serial Library routines
serial.charArrived.dll ── error.c.o error.h serial.h ╢
get_port.c get_port.h
serial.clearBreak.dll ── error.c.o error.h serial.h ╢
get_port.c get_port.h
serial.close.dll ── error.c.o error.h
serial.configure.dll ── error.c.o error.h serial.h ╢
get_port.c get_port.h
serial.open.dll ── error.c.o error.h serial.h
serial.read.dll ── error.c.o error.h serial.h ╢
get_port.c get_port.h ╢
get_read_flags.c get_read_flags.h
serial.readFile.dll ── error.c.o error.h serial.h ╢
get_port.c get_port.h ╢
get_read_flags.c get_read_flags.h
serial.readFileTilStr.dll ── error.c.o error.h serial.h ╢
get_port.c get_port.h ╢
interpret.c interpret.h ╢
get_read_flags.c get_read_flags.h
serial.readTilStr.dll ── error.c.o error.h serial.h ╢
get_port.c get_port.h ╢
interpret.c interpret.h ╢
get_read_flags.c get_read_flags.h
serial.resetBuffer.dll ── error.c.o error.h serial.h ╢
get_port.c get_port.h
serial.setBreak.dll ── error.c.o error.h serial.h ╢
get_port.c get_port.h
serial.setBuffer.dll ── error.c.o error.h ╢
serial.h ╢
get_port.c get_port.h
serial.waitTilStr.dll ── error.c.o error.h ╢
serial.h ╢
get_port.c get_port.h ╢
interpret.c interpret.h ╢
get_read_flags.c get_read_flags.h
serial.write.dll ── error.c.o error.h ╢
serial.h ╢
get_port.c get_port.h ╢
interpret.c interpret.h ╢
absorb_echo.c absorb_echo.h ╢
get_write_flags.c get_write_flags.h
serial.writeFile.dll ── error.c.o error.h ╢
serial.h ╢
absorb_echo.c absorb_echo.h ╢
get_write_flags.c get_write_flags.h
# The error handling routine
error.c.o ─ error.c error.h
C error.c ╢
-e2 | ╢
C -o error.c.o ╢
-t ╢
-b2 ╢
-r